package cn.net.yato.picture.biz.impl;

import cn.net.yato.picture.biz.UserBiz;
import cn.net.yato.picture.entity.User;
import cn.net.yato.picture.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName UserBizImpl
 * @Description TODO
 * @Author yato
 * @Date 2020/2/19 14:57
 * @Version 1.0
 */
@Service
public class UserBizImpl implements UserBiz {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> getAllUsersBiz() {
        return userMapper.getAllUsers();
    }

    @Override
    public int modifyLastLoginDateBiz(User user) {
        return userMapper.updateById(user);
    }
}
